hasProperty

abstract fun hasProperty(name: String): Boolean

Checks whether this JavaScript object or any of its prototypes has an enumerable property with the given name.

Return

true if object has property with the given name

Parameters

name

the name of the property

Throws

when name is empty or blank

when the JavaScript object is already disposed or invalid